home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7377 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  3.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 0a | 50 61 74 68 3a 20 64 69 |.lang.c.|Path: di|
|00000020| 73 63 75 73 2e 74 65 63 | 68 6e 69 6f 6e 2e 61 63 |scus.tec|hnion.ac|
|00000030| 2e 69 6c 21 63 73 64 21 | 65 6d 69 6c 64 0a 46 72 |.il!csd!|emild.Fr|
|00000040| 6f 6d 3a 20 4b 6f 68 6e | 20 45 6d 69 6c 20 44 61 |om: Kohn| Emil Da|
|00000050| 6e 20 3c 65 6d 69 6c 64 | 40 63 73 2e 74 65 63 68 |n <emild|@cs.tech|
|00000060| 6e 69 6f 6e 2e 61 63 2e | 69 6c 3e 0a 53 75 62 6a |nion.ac.|il>.Subj|
|00000070| 65 63 74 3a 20 52 65 3a | 20 72 65 74 75 72 6e 69 |ect: Re:| returni|
|00000080| 6e 67 20 70 74 72 20 74 | 6f 20 73 74 72 75 63 74 |ng ptr t|o struct|
|00000090| 20 77 69 74 68 20 70 74 | 72 73 20 69 6e 20 69 74 | with pt|rs in it|
|000000a0| 3f 20 0a 43 6f 6e 74 65 | 6e 74 2d 54 79 70 65 3a |? .Conte|nt-Type:|
|000000b0| 20 54 45 58 54 2f 50 4c | 41 49 4e 3b 20 63 68 61 | TEXT/PL|AIN; cha|
|000000c0| 72 73 65 74 3d 55 53 2d | 41 53 43 49 49 0a 4f 72 |rset=US-|ASCII.Or|
|000000d0| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 54 65 63 68 |ganizati|on: Tech|
|000000e0| 6e 69 6f 6e 2c 20 49 73 | 72 61 65 6c 20 49 6e 73 |nion, Is|rael Ins|
|000000f0| 74 69 74 75 74 65 20 6f | 66 20 54 65 63 68 6e 6f |titute o|f Techno|
|00000100| 6c 6f 67 79 0a 44 61 74 | 65 3a 20 53 75 6e 2c 20 |logy.Dat|e: Sun, |
|00000110| 32 35 20 46 65 62 20 31 | 39 39 36 20 32 33 3a 34 |25 Feb 1|996 23:4|
|00000120| 37 3a 32 32 20 47 4d 54 | 0a 4d 65 73 73 61 67 65 |7:22 GMT|.Message|
|00000130| 2d 49 44 3a 20 3c 50 69 | 6e 65 2e 53 56 34 2e 33 |-ID: <Pi|ne.SV4.3|
|00000140| 2e 39 31 2d 68 65 62 2d | 32 2e 30 34 2e 39 36 30 |.91-heb-|2.04.960|
|00000150| 32 32 36 30 31 32 37 31 | 31 2e 32 39 30 30 37 43 |22601271|1.29007C|
|00000160| 2d 31 30 30 30 30 30 40 | 63 73 2e 74 65 63 68 6e |-100000@|cs.techn|
|00000170| 69 6f 6e 2e 61 63 2e 69 | 6c 3e 0a 4d 69 6d 65 2d |ion.ac.i|l>.Mime-|
|00000180| 56 65 72 73 69 6f 6e 3a | 20 31 2e 30 0a 49 6e 2d |Version:| 1.0.In-|
|00000190| 52 65 70 6c 79 2d 54 6f | 3a 20 3c 34 67 6b 38 35 |Reply-To|: <4gk85|
|000001a0| 32 49 4e 4e 62 70 34 40 | 66 61 61 74 63 72 6c 2e |2INNbp4@|faatcrl.|
|000001b0| 66 61 61 2e 67 6f 76 3e | 20 0a 58 2d 4e 6e 74 70 |faa.gov>| .X-Nntp|
|000001c0| 2d 50 6f 73 74 69 6e 67 | 2d 48 6f 73 74 3a 20 63 |-Posting|-Host: c|
|000001d0| 73 64 2e 63 73 2e 74 65 | 63 68 6e 69 6f 6e 2e 61 |sd.cs.te|chnion.a|
|000001e0| 63 2e 69 6c 0a 52 65 66 | 65 72 65 6e 63 65 73 3a |c.il.Ref|erences:|
|000001f0| 20 3c 34 67 6b 38 35 32 | 49 4e 4e 62 70 34 40 66 | <4gk852|INNbp4@f|
|00000200| 61 61 74 63 72 6c 2e 66 | 61 61 2e 67 6f 76 3e 20 |aatcrl.f|aa.gov> |
|00000210| 0a 53 65 6e 64 65 72 3a | 20 6e 65 77 73 40 64 69 |.Sender:| news@di|
|00000220| 73 63 75 73 2e 74 65 63 | 68 6e 69 6f 6e 2e 61 63 |scus.tec|hnion.ac|
|00000230| 2e 69 6c 20 28 4e 65 77 | 73 20 73 79 73 74 65 6d |.il (New|s system|
|00000240| 29 0a 58 2d 53 65 6e 64 | 65 72 3a 20 65 6d 69 6c |).X-Send|er: emil|
|00000250| 64 40 63 73 64 0a 0a 0a | 0a 4f 6e 20 32 33 20 46 |d@csd...|.On 23 F|
|00000260| 65 62 20 31 39 39 36 2c | 20 6c 62 6f 6e 61 20 77 |eb 1996,| lbona w|
|00000270| 72 6f 74 65 3a 0a 0a 3e | 20 0a 3e 20 54 68 65 20 |rote:..>| .> The |
|00000280| 66 6f 6c 6c 6f 77 69 6e | 67 20 69 73 20 62 65 79 |followin|g is bey|
|00000290| 6f 6e 64 20 74 68 65 20 | 73 63 6f 70 65 20 6f 66 |ond the |scope of|
|000002a0| 20 6d 79 20 6b 6e 6f 77 | 6c 65 64 67 65 2e 20 50 | my know|ledge. P|
|000002b0| 65 72 68 61 70 73 20 73 | 6f 6d 65 6f 6e 65 20 63 |erhaps s|omeone c|
|000002c0| 61 6e 20 65 78 70 6c 61 | 69 6e 0a 3e 20 69 74 20 |an expla|in.> it |
|000002d0| 74 6f 20 6d 65 3a 0a 3e | 20 0a 3e 20 57 68 65 6e |to me:.>| .> When|
|000002e0| 20 49 20 64 65 63 6c 61 | 72 65 20 61 20 66 75 6e | I decla|re a fun|
|000002f0| 63 74 69 6f 6e 20 74 68 | 61 74 20 72 65 74 75 72 |ction th|at retur|
|00000300| 6e 73 20 61 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |ns a poi|nter to |
|00000310| 61 20 73 74 72 75 63 74 | 20 74 68 61 74 20 63 6f |a struct| that co|
|00000320| 6e 74 61 69 6e 73 20 0a | 3e 20 70 6f 69 6e 74 65 |ntains .|> pointe|
|00000330| 72 73 2c 20 74 68 65 20 | 70 6f 69 6e 74 65 72 28 |rs, the |pointer(|
|00000340| 73 29 20 61 74 20 74 68 | 65 20 65 6e 64 20 6f 66 |s) at th|e end of|
|00000350| 20 74 68 65 20 73 74 72 | 75 63 74 20 67 65 74 20 | the str|uct get |
|00000360| 73 65 74 20 74 6f 20 67 | 61 72 62 61 67 65 20 61 |set to g|arbage a|
|00000370| 66 74 65 72 20 0a 3e 20 | 62 65 69 6e 67 20 72 65 |fter .> |being re|
|00000380| 74 75 72 6e 65 64 2e 20 | 50 6f 69 6e 74 65 72 73 |turned. |Pointers|
|00000390| 20 6e 6f 74 20 61 74 20 | 74 68 65 20 65 6e 64 20 | not at |the end |
|000003a0| 61 72 65 20 6e 6f 74 20 | 61 66 66 65 63 74 65 64 |are not |affected|
|000003b0| 2e 0a 3e 20 0a 3e 20 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..> .> -|--------|
|000003c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000003d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000003e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000003f0| 2d 2d 2d 2d 2d 0a 3e 20 | 0a 3e 20 74 79 70 65 64 |-----.> |.> typed|
|00000400| 65 66 20 73 74 72 75 63 | 74 20 61 61 61 20 7b 0a |ef struc|t aaa {.|
|00000410| 3e 20 69 6e 74 20 69 3b | 0a 3e 20 63 68 61 72 20 |> int i;|.> char |
|00000420| 6e 61 6d 65 5b 32 32 5d | 3b 0a 3e 20 69 6e 74 20 |name[22]|;.> int |
|00000430| 69 64 3b 0a 3e 20 7d 20 | 41 41 41 3b 0a 3e 20 0a |id;.> } |AAA;.> .|
|00000440| 3e 20 74 79 70 65 64 65 | 66 20 73 74 72 75 63 74 |> typede|f struct|
|00000450| 20 62 61 72 20 7b 0a 3e | 20 6c 6f 6e 67 20 61 3b | bar {.>| long a;|
|00000460| 0a 3e 20 6c 6f 6e 67 20 | 62 3b 0a 3e 20 69 6e 74 |.> long |b;.> int|
|00000470| 20 63 3b 0a 3e 20 41 41 | 41 20 2a 64 3b 0a 3e 20 | c;.> AA|A *d;.> |
|00000480| 63 68 61 72 20 65 3b 0a | 3e 20 63 68 61 72 20 66 |char e;.|> char f|
|00000490| 5b 31 30 30 5d 3b 0a 3e | 20 41 41 41 20 2a 67 3b |[100];.>| AAA *g;|
|000004a0| 0a 3e 20 41 41 41 20 2a | 68 3b 0a 3e 20 7d 20 42 |.> AAA *|h;.> } B|
|000004b0| 41 52 3b 0a 3e 20 0a 3e | 20 42 41 52 20 2a 70 61 |AR;.> .>| BAR *pa|
|000004c0| 72 73 65 5f 62 61 72 28 | 63 68 61 72 20 74 6f 6b |rse_bar(|char tok|
|000004d0| 65 5b 5d 29 3b 0a 3e 20 | 0a 3e 20 6d 61 69 6e 28 |e[]);.> |.> main(|
|000004e0| 29 0a 3e 20 7b 0a 3e 20 | 42 41 52 20 42 42 3b 0a |).> {.> |BAR BB;.|
|000004f0| 3e 20 63 68 61 72 20 74 | 6f 6b 65 5b 31 32 38 5d |> char t|oke[128]|
|00000500| 3b 0a 3e 20 0a 3e 20 6d | 65 6d 73 65 74 28 26 42 |;.> .> m|emset(&B|
|00000510| 42 2c 30 2c 73 69 7a 65 | 6f 66 28 42 41 52 29 29 |B,0,size|of(BAR))|
|00000520| 3b 0a 3e 20 20 2f 2a 20 | 61 74 20 74 68 69 73 20 |;.> /* |at this |
|00000530| 70 6f 69 6e 74 20 42 42 | 2e 64 20 3d 3d 20 42 42 |point BB|.d == BB|
|00000540| 2e 67 20 3d 3d 20 42 42 | 2e 68 20 3d 3d 20 4e 55 |.g == BB|.h == NU|
|00000550| 4c 4c 20 2a 2f 0a 3e 20 | 0a 3e 20 20 20 2f 2a 20 |LL */.> |.> /* |
|00000560| 74 6f 6b 65 20 69 73 20 | 61 6e 20 61 73 63 69 69 |toke is |an ascii|
|00000570| 20 73 74 72 69 6e 67 20 | 72 65 61 64 20 69 6e 20 | string |read in |
|00000580| 66 72 6f 6d 20 61 20 66 | 69 6c 65 20 2a 2f 0a 3e |from a f|ile */.>|
|00000590| 20 42 42 20 3d 20 2a 70 | 61 72 73 65 5f 62 61 72 | BB = *p|arse_bar|
|000005a0| 28 74 6f 6b 65 29 3b 0a | 3e 20 0a 3e 20 2f 2a 20 |(toke);.|> .> /* |
|000005b0| 61 74 20 74 68 69 73 20 | 70 6f 69 6e 74 20 42 42 |at this |point BB|
|000005c0| 2e 67 20 61 6e 64 20 42 | 42 2e 68 20 61 72 65 20 |.g and B|B.h are |
|000005d0| 67 61 72 62 61 67 65 2c | 20 62 75 74 20 61 6c 6c |garbage,| but all|
|000005e0| 20 74 68 65 20 6f 74 68 | 65 72 20 66 69 65 6c 64 | the oth|er field|
|000005f0| 73 20 2a 2f 0a 3e 20 2f | 2a 20 69 6e 20 42 42 20 |s */.> /|* in BB |
|00000600| 61 72 65 20 63 6f 72 72 | 65 63 74 20 69 6e 63 6c |are corr|ect incl|
|00000610| 75 64 69 6e 67 20 42 42 | 2e 64 2a 2f 0a 3e 20 0a |uding BB|.d*/.> .|
|00000620| 3e 20 7d 0a 3e 20 0a 3e | 20 0a 3e 20 42 41 52 20 |> }.> .>| .> BAR |
|00000630| 2a 70 61 72 73 65 5f 62 | 61 72 28 63 68 61 72 20 |*parse_b|ar(char |
|00000640| 74 6f 6b 65 5b 5d 29 3b | 0a 3e 20 7b 0a 3e 20 42 |toke[]);|.> {.> B|
|00000650| 41 52 20 62 62 3b 0a 3e | 20 0a 3e 20 6d 65 6d 73 |AR bb;.>| .> mems|
|00000660| 65 74 28 26 62 62 2c 30 | 2c 73 69 7a 65 6f 66 28 |et(&bb,0|,sizeof(|
|00000670| 42 41 52 29 29 3b 0a 3e | 20 20 2f 2a 20 61 74 20 |BAR));.>| /* at |
|00000680| 74 68 69 73 20 70 6f 69 | 6e 74 20 42 42 2e 64 20 |this poi|nt BB.d |
|00000690| 3d 3d 20 42 42 2e 67 20 | 3d 3d 20 42 42 2e 68 20 |== BB.g |== BB.h |
|000006a0| 3d 3d 20 4e 55 4c 4c 20 | 2a 2f 0a 3e 20 0a 3e 20 |== NULL |*/.> .> |
|000006b0| 2f 2a 20 72 65 61 64 20 | 64 61 74 61 20 66 72 6f |/* read |data fro|
|000006c0| 6d 20 66 69 6c 65 20 61 | 6e 64 20 70 61 72 73 65 |m file a|nd parse|
|000006d0| 20 2d 20 6e 65 76 65 72 | 20 74 6f 75 63 68 20 62 | - never| touch b|
|000006e0| 62 2e 64 2c 20 62 62 2e | 67 2c 20 6f 72 20 62 62 |b.d, bb.|g, or bb|
|000006f0| 2e 68 20 2a 2f 0a 3e 20 | 0a 3e 20 20 2f 2a 20 61 |.h */.> |.> /* a|
|00000700| 74 20 74 68 69 73 20 70 | 6f 69 6e 74 20 42 42 2e |t this p|oint BB.|
|00000710| 64 20 3d 3d 20 42 42 2e | 67 20 3d 3d 20 42 42 2e |d == BB.|g == BB.|
|00000720| 68 20 3d 3d 20 4e 55 4c | 4c 20 2a 2f 0a 3e 20 72 |h == NUL|L */.> r|
|00000730| 65 74 75 72 6e 28 26 62 | 62 29 3b 0a 3e 20 7d 0a |eturn(&b|b);.> }.|
|00000740| 3e 20 0a 3e 20 0a 3e 20 | 2d 2d 2d 2d 2d 2d 2d 2d |> .> .> |--------|
|00000750| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000760| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000770| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000780| 2d 2d 0a 3e 20 0a 3e 20 | 49 20 6b 6e 6f 77 20 74 |--.> .> |I know t|
|00000790| 68 65 72 65 20 61 72 65 | 20 73 65 76 65 72 61 6c |here are| several|
|000007a0| 20 77 6f 72 6b 20 61 72 | 6f 75 6e 64 73 2c 20 61 | work ar|ounds, a|
|000007b0| 6e 64 20 74 68 61 74 20 | 69 74 27 73 20 62 65 74 |nd that |it's bet|
|000007c0| 74 65 72 20 74 6f 20 70 | 61 73 73 20 74 68 65 20 |ter to p|ass the |
|000007d0| 61 64 64 72 65 73 73 0a | 3e 20 6f 66 20 42 42 20 |address.|> of BB |
|000007e0| 74 6f 20 70 61 72 73 65 | 5f 62 61 72 28 29 2c 20 |to parse|_bar(), |
|000007f0| 77 68 69 63 68 20 69 73 | 20 77 68 61 74 20 49 27 |which is| what I'|
|00000800| 6c 6c 20 62 65 20 64 6f | 69 6e 67 2e 20 42 75 74 |ll be do|ing. But|
|00000810| 20 49 27 6d 20 63 75 72 | 69 6f 75 73 20 77 68 79 | I'm cur|ious why|
|00000820| 20 74 68 69 73 20 69 73 | 0a 3e 20 68 61 70 70 65 | this is|.> happe|
|00000830| 6e 69 6e 67 2e 20 49 27 | 76 65 20 74 72 69 65 64 |ning. I'|ve tried|
|00000840| 20 69 74 20 75 6e 64 65 | 72 20 4b 26 52 20 6f 6e | it unde|r K&R on|
|00000850| 20 55 6e 69 78 20 61 6e | 64 20 41 4e 53 49 20 6f | Unix an|d ANSI o|
|00000860| 6e 20 44 4f 53 20 61 6e | 64 20 74 68 65 20 72 65 |n DOS an|d the re|
|00000870| 73 75 6c 74 73 0a 3e 20 | 77 65 72 65 20 69 64 65 |sults.> |were ide|
|00000880| 6e 74 69 63 61 6c 2e 0a | 3e 20 0a 3e 20 0a 3e 20 |ntical..|> .> .> |
|00000890| 41 6e 79 20 68 65 6c 70 | 20 77 6f 75 6c 64 20 62 |Any help| would b|
|000008a0| 65 20 61 70 70 72 65 63 | 69 61 74 65 64 2c 0a 3e |e apprec|iated,.>|
|000008b0| 20 0a 3e 20 74 68 61 6e | 6b 73 0a 3e 20 0a 3e 20 | .> than|ks.> .> |
|000008c0| 2d 2d 0a 3e 20 0a 3e 20 | 4c 6f 75 20 42 6f 6e 61 |--.> .> |Lou Bona|
|000008d0| 0a 3e 20 6c 62 6f 6e 61 | 40 74 67 66 2e 74 63 2e |.> lbona|@tgf.tc.|
|000008e0| 66 61 61 2e 67 6f 76 0a | 3e 20 0a 4f 6e 65 20 70 |faa.gov.|> .One p|
|000008f0| 72 6f 62 6c 65 6d 20 77 | 69 74 68 20 20 79 6f 75 |roblem w|ith you|
|00000900| 72 20 63 6f 64 65 20 69 | 73 20 74 68 61 74 20 79 |r code i|s that y|
|00000910| 6f 75 20 61 72 65 20 72 | 65 74 75 72 6e 69 6e 67 |ou are r|eturning|
|00000920| 20 74 68 65 20 61 64 64 | 72 65 73 73 20 6f 66 20 | the add|ress of |
|00000930| 61 20 0a 6c 6f 63 61 6c | 20 61 75 74 6f 6d 61 74 |a .local| automat|
|00000940| 69 63 20 76 61 72 69 61 | 62 6c 65 2e 20 49 6e 20 |ic varia|ble. In |
|00000950| 43 2c 20 61 6e 79 20 6c | 6f 63 61 6c 20 76 61 72 |C, any l|ocal var|
|00000960| 69 61 62 6c 65 20 69 66 | 20 69 74 20 68 61 73 20 |iable if| it has |
|00000970| 6e 6f 20 73 74 6f 72 61 | 67 65 20 0a 63 6c 61 73 |no stora|ge .clas|
|00000980| 73 20 73 70 65 63 69 66 | 69 65 64 2c 20 72 65 63 |s specif|ied, rec|
|00000990| 65 69 76 65 73 20 62 79 | 20 74 68 65 20 61 75 74 |eives by| the aut|
|000009a0| 6f 20 6d 65 6d 6f 72 79 | 20 63 6c 61 73 73 2c 20 |o memory| class, |
|000009b0| 69 2e 65 2e 20 69 74 20 | 69 73 20 63 72 65 61 74 |i.e. it |is creat|
|000009c0| 65 64 20 69 6e 20 0a 74 | 68 65 20 6d 6f 6d 65 6e |ed in .t|he momen|
|000009d0| 74 20 6f 66 20 69 74 73 | 20 64 65 66 69 6e 69 74 |t of its| definit|
|000009e0| 69 6f 6e 2c 20 61 6e 64 | 20 69 73 20 64 65 73 74 |ion, and| is dest|
|000009f0| 72 6f 79 65 64 20 6f 6e | 20 65 78 69 74 69 6e 67 |royed on| exiting|
|00000a00| 20 74 68 65 20 62 6c 6f | 63 6b 20 74 68 61 74 20 | the blo|ck that |
|00000a10| 0a 63 6f 6e 74 61 69 6e | 65 64 20 74 68 65 20 64 |.contain|ed the d|
|00000a20| 65 66 69 6e 69 74 69 6f | 6e 2e 20 53 6f 2c 20 77 |efinitio|n. So, w|
|00000a30| 68 65 6e 20 65 78 69 74 | 69 6e 67 20 70 61 72 73 |hen exit|ing pars|
|00000a40| 65 5f 62 61 72 28 29 2c | 20 74 68 65 20 6c 6f 63 |e_bar(),| the loc|
|00000a50| 61 6c 20 0a 76 61 72 69 | 61 62 6c 65 20 62 62 2c |al .vari|able bb,|
|00000a60| 20 6f 66 20 74 79 70 65 | 20 42 41 52 20 69 73 20 | of type| BAR is |
|00000a70| 64 65 73 74 72 6f 79 65 | 64 2c 20 79 6f 75 20 63 |destroye|d, you c|
|00000a80| 61 6e 6e 6f 74 20 6c 65 | 67 61 6c 6c 79 20 72 65 |annot le|gally re|
|00000a90| 66 65 72 65 6e 63 65 20 | 69 74 73 20 0a 63 6f 6e |ference |its .con|
|00000aa0| 74 65 6e 74 73 2e 0a 0a | 41 6e 6f 74 68 65 72 20 |tents...|Another |
|00000ab0| 70 72 6f 62 6c 65 6d 20 | 77 69 74 68 20 79 6f 75 |problem |with you|
|00000ac0| 72 20 63 6f 64 65 20 69 | 73 20 74 68 61 74 20 6d |r code i|s that m|
|00000ad0| 65 6d 73 65 74 20 77 69 | 6c 6c 20 4e 4f 54 20 6e |emset wi|ll NOT n|
|00000ae0| 65 63 65 73 73 61 72 69 | 6c 6c 79 20 73 65 74 0a |ecessari|lly set.|
|00000af0| 74 68 65 20 70 6f 69 6e | 74 65 72 73 20 77 69 74 |the poin|ters wit|
|00000b00| 68 20 4e 55 4c 4c 20 28 | 4e 55 4c 4c 20 70 6f 69 |h NULL (|NULL poi|
|00000b10| 6e 74 65 72 73 29 2e 20 | 53 65 65 20 74 68 65 20 |nters). |See the |
|00000b20| 46 41 51 20 66 6f 72 20 | 64 65 74 61 69 6c 73 20 |FAQ for |details |
|00000b30| 6f 6e 20 74 68 69 73 0a | 28 74 68 65 20 27 6e 75 |on this.|(the 'nu|
|00000b40| 6c 6c 20 70 6f 69 6e 74 | 65 72 73 27 20 73 65 63 |ll point|ers' sec|
|00000b50| 74 69 6f 6e 29 2c 20 65 | 73 70 65 63 69 61 6c 6c |tion), e|speciall|
|00000b60| 79 20 74 68 65 20 71 75 | 65 73 74 69 6f 6e 73 20 |y the qu|estions |
|00000b70| 72 65 6c 61 74 65 64 20 | 74 6f 0a 6d 61 63 68 69 |related |to.machi|
|00000b80| 6e 65 73 20 68 61 76 69 | 6e 67 20 6e 6f 6e 2d 7a |nes havi|ng non-z|
|00000b90| 65 72 6f 20 62 69 74 20 | 72 65 70 72 65 73 65 6e |ero bit |represen|
|00000ba0| 74 61 74 69 6f 6e 73 20 | 66 6f 72 20 6e 75 6c 6c |tations |for null|
|00000bb0| 20 70 6f 69 6e 74 65 72 | 73 2e 20 0a 0a 0a 49 6e | pointer|s. ...In|
|00000bc0| 20 6f 72 64 65 72 20 74 | 6f 20 63 6f 72 72 65 63 | order t|o correc|
|00000bd0| 74 20 74 68 65 20 66 69 | 72 73 74 20 70 72 6f 62 |t the fi|rst prob|
|00000be0| 6c 65 6d 2c 20 61 20 73 | 6f 6c 75 74 69 6f 6e 20 |lem, a s|olution |
|00000bf0| 63 6f 75 6c 64 20 62 65 | 20 74 6f 20 64 65 63 6c |could be| to decl|
|00000c00| 61 72 65 20 62 62 20 0a | 73 74 61 74 69 63 2e 0a |are bb .|static..|
|00000c10| 0a 0a 46 6f 72 20 74 68 | 65 20 73 65 63 6f 6e 64 |..For th|e second|
|00000c20| 20 70 72 6f 62 6c 65 6d | 2c 20 79 6f 75 20 73 68 | problem|, you sh|
|00000c30| 6f 75 6c 64 20 69 6e 69 | 74 69 61 6c 69 7a 65 20 |ould ini|tialize |
|00000c40| 61 6c 6c 20 74 68 65 20 | 66 69 65 6c 64 73 20 6f |all the |fields o|
|00000c50| 66 20 62 61 72 2c 20 62 | 79 0a 61 73 73 69 67 6e |f bar, b|y.assign|
|00000c60| 69 6e 67 20 74 68 65 6d | 20 61 70 70 72 6f 70 72 |ing them| appropr|
|00000c70| 69 74 65 20 76 61 6c 75 | 65 73 2e 20 4e 6f 74 65 |ite valu|es. Note|
|00000c80| 20 74 68 61 74 20 69 66 | 20 79 6f 75 20 64 65 63 | that if| you dec|
|00000c90| 6c 61 72 65 20 62 62 20 | 61 73 20 73 74 61 74 69 |lare bb |as stati|
|00000ca0| 63 2c 0a 79 6f 75 20 73 | 68 6f 75 6c 64 6e 27 74 |c,.you s|houldn't|
|00000cb0| 20 69 6e 69 74 69 61 6c | 69 7a 65 20 69 74 20 77 | initial|ize it w|
|00000cc0| 69 74 68 20 61 20 73 74 | 72 75 63 74 75 72 65 20 |ith a st|ructure |
|00000cd0| 63 6f 6e 73 74 61 6e 74 | 2c 20 62 65 63 61 75 73 |constant|, becaus|
|00000ce0| 65 20 73 74 61 74 69 63 | 0a 76 61 72 69 62 6c 65 |e static|.varible|
|00000cf0| 73 20 61 72 65 20 69 6e | 69 74 69 61 6c 69 7a 65 |s are in|itialize|
|00000d00| 64 20 6f 6e 6c 79 20 6f | 6e 63 65 2c 20 69 6e 20 |d only o|nce, in |
|00000d10| 79 6f 75 72 20 63 61 73 | 65 20 74 68 65 20 66 69 |your cas|e the fi|
|00000d20| 72 73 74 20 74 69 6d 65 | 20 70 61 72 73 65 5f 62 |rst time| parse_b|
|00000d30| 61 72 0a 69 73 20 63 61 | 6c 6c 65 64 2c 20 61 6e |ar.is ca|lled, an|
|00000d40| 64 20 4e 4f 54 20 65 76 | 65 72 79 20 74 69 6d 65 |d NOT ev|ery time|
|00000d50| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 69 73 | the fun|ction is|
|00000d60| 20 63 61 6c 6c 65 64 2e | 20 0a 0a 48 6f 70 65 20 | called.| ..Hope |
|00000d70| 74 68 69 73 20 68 65 6c | 70 73 2e 0a 0a 0a 09 09 |this hel|ps......|
|00000d80| 09 09 09 09 52 65 67 61 | 72 64 73 2c 0a 0a 09 09 |....Rega|rds,....|
|00000d90| 09 09 09 09 09 09 45 6d | 69 6c 0a |......Em|il. |
+--------+-------------------------+-------------------------+--------+--------+